import java.util.Scanner;

public class TestDemo {
    public static void main(String[] args) {
        int sumEve=0;
        int sumOdd=0;
        for(int i =1;i<=100;i++){
            if(i%2!=0){
                sumOdd+=i;
            }else {
                sumEve += i;
            }
        }
        System.out.println(sumEve);
        System.out.println(sumOdd);
    }
}

class TestDemo1{
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
                int n=scanner.nextInt();
                int sum=0;
        for(int j=1;j<=n;j++){
            int ret=1;
            for(int i=1;i<=j;i++){
               ret*=i;
            }
            sum+=ret;
        }
        System.out.println(sum);
    }
}